﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="UCenter.Web.Views.Account.ChangePassword" %>

<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript">
        $(document).ready(function(){
            $("#form_resetPassword").validate( {
                rules: {
                    email: {
                        required: true,
                        email: true,
                        remote: '<%= Url.Action("IsEmailNotAvailable", "Account") %>'
                    }
                },
                messages: {
                    email: {
                        required: "Email地址不能为空",
				        email: "Email地址输入格式不正确",
				        remote: '该Email还没有在UCenter注册！<%= Html.ActionLink("点击这里", "Register", "Account") %>注册。'
				    }
                }  
            });
        });  
    </script>

    <div class="form1">
        <h3>取回密码</h3>
        
        <div class="s1">
            <p>忘记登陆Email？<%= Html.ActionLink("请点击这里", "Help", "Home") %></p>
        </div>
        
        <form id="form_resetPassword" method="post" action="<%= Html.AttributeEncode(Url.Action("ResetPassword", "Account")) %>">
            <p>
                <label for="mail">Email：</label>
                <%= Html.TextBox("email", "", new { @class = "f-text" })%>
            </p>
            <p><%= Html.SubmitButton("setPassword", "取回密码", new { @class = "f-button" })%></p>
        </form>
    </div>

</asp:Content>
